.class public Ldgb/q0;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldgb/q0$b;,
        Ldgb/q0$d;,
        Ldgb/q0$c;
    }
.end annotation


# static fields
.field private static final a:Z

.field static b:Ljava/util/WeakHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/WeakHashMap<",
            "Ldgb/q0$d;",
            "Ldgb/q0$b;",
            ">;"
        }
    .end annotation
.end field

.field private static final c:[Ljava/lang/String;

.field private static final d:[Ljava/lang/String;

.field private static final e:[Ljava/lang/String;

.field private static final f:[Ljava/lang/String;

.field private static g:Ldgb/q0$c;

.field private static h:Ldgb/q0$c;

.field private static i:Ldgb/q0$c;

.field private static j:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ldgb/q0$c;",
            ">;"
        }
    .end annotation
.end field

.field private static k:Landroid/content/Context;

.field private static final l:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/util/WeakHashMap<",
            "Ldgb/q0$d;",
            "Ldgb/q0$b;",
            ">;>;"
        }
    .end annotation
.end field

.field private static final m:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 11

    .line 1
    sget-boolean v0, Ldgb/o0;->c:Z

    const/4 v0, 0x0

    sput-boolean v0, Ldgb/q0;->a:Z

    .line 2
    new-instance v1, Ljava/util/WeakHashMap;

    invoke-direct {v1}, Ljava/util/WeakHashMap;-><init>()V

    sput-object v1, Ldgb/q0;->b:Ljava/util/WeakHashMap;

    const/16 v1, 0x11

    new-array v1, v1, [Ljava/lang/String;

    const-string v2, "android.net.conn.CONNECTIVITY_CHANGE"

    aput-object v2, v1, v0

    const-string v2, "android.net.wifi.WIFI_STATE_CHANGED"

    const/4 v3, 0x1

    aput-object v2, v1, v3

    const-string v2, "android.intent.action.TIME_SET"

    const/4 v4, 0x2

    aput-object v2, v1, v4

    const-string v2, "android.intent.action.LOCALE_CHANGED"

    const/4 v5, 0x3

    aput-object v2, v1, v5

    const-string v2, "android.intent.action.TIMEZONE_CHANGED"

    const/4 v6, 0x4

    aput-object v2, v1, v6

    const-string v2, "android.intent.action.BATTERY_CHANGED"

    const/4 v7, 0x5

    aput-object v2, v1, v7

    const-string v2, "android.intent.action.BATTERY_LOW"

    const/4 v8, 0x6

    aput-object v2, v1, v8

    const/4 v2, 0x7

    const-string v9, "android.intent.action.BATTERY_OKAY"

    aput-object v9, v1, v2

    const/16 v2, 0x8

    const-string v9, "android.intent.action.USER_PRESENT"

    aput-object v9, v1, v2

    const/16 v2, 0x9

    const-string v9, "android.intent.action.ACTION_POWER_CONNECTED"

    aput-object v9, v1, v2

    const/16 v2, 0xa

    const-string v9, "android.intent.action.ACTION_POWER_DISCONNECTED"

    aput-object v9, v1, v2

    const/16 v2, 0xb

    const-string v9, "android.intent.action.HEADSET_PLUG"

    aput-object v9, v1, v2

    const/16 v2, 0xc

    const-string v9, "android.intent.action.AIRPLANE_MODE"

    aput-object v9, v1, v2

    const/16 v2, 0xd

    const-string v9, "android.intent.action.SCREEN_ON"

    aput-object v9, v1, v2

    const/16 v2, 0xe

    const-string v9, "android.intent.action.SCREEN_OFF"

    aput-object v9, v1, v2

    const/16 v2, 0xf

    const-string v9, "android.intent.action.ACTION_SHUTDOWN"

    aput-object v9, v1, v2

    const/16 v2, 0x10

    const-string v10, "android.intent.action.WALLPAPER_CHANGED"

    aput-object v10, v1, v2

    .line 3
    sput-object v1, Ldgb/q0;->c:[Ljava/lang/String;

    new-array v1, v8, [Ljava/lang/String;

    const-string v2, "android.intent.action.PACKAGE_ADDED"

    aput-object v2, v1, v0

    const-string v2, "android.intent.action.PACKAGE_CHANGED"

    aput-object v2, v1, v3

    const-string v2, "android.intent.action.PACKAGE_DATA_CLEARED"

    aput-object v2, v1, v4

    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    aput-object v2, v1, v5

    const-string v2, "android.intent.action.PACKAGE_REPLACED"

    aput-object v2, v1, v6

    const-string v2, "android.intent.action.PACKAGE_RESTARTED"

    aput-object v2, v1, v7

    .line 4
    sput-object v1, Ldgb/q0;->d:[Ljava/lang/String;

    new-array v1, v6, [Ljava/lang/String;

    const-string v2, "android.intent.action.MEDIA_MOUNTED"

    aput-object v2, v1, v0

    const-string v2, "android.intent.action.MEDIA_EJECT"

    aput-object v2, v1, v3

    const-string v6, "android.intent.action.MEDIA_UNMOUNTED"

    aput-object v6, v1, v4

    const-string v6, "android.intent.action.MEDIA_BAD_REMOVAL"

    aput-object v6, v1, v5

    .line 5
    sput-object v1, Ldgb/q0;->e:[Ljava/lang/String;

    new-array v1, v4, [Ljava/lang/String;

    aput-object v9, v1, v0

    aput-object v2, v1, v3

    .line 6
    sput-object v1, Ldgb/q0;->f:[Ljava/lang/String;

    .line 7
    new-instance v0, Ldgb/q0$c;

    invoke-direct {v0}, Ldgb/q0$c;-><init>()V

    sput-object v0, Ldgb/q0;->g:Ldgb/q0$c;

    .line 8
    new-instance v0, Ldgb/q0$c;

    invoke-direct {v0}, Ldgb/q0$c;-><init>()V

    sput-object v0, Ldgb/q0;->h:Ldgb/q0$c;

    .line 9
    new-instance v0, Ldgb/q0$c;

    invoke-direct {v0}, Ldgb/q0$c;-><init>()V

    sput-object v0, Ldgb/q0;->i:Ldgb/q0$c;

    .line 10
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Ldgb/q0;->j:Ljava/util/HashMap;

    .line 11
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Ldgb/q0;->l:Ljava/util/HashMap;

    .line 12
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    sput-object v0, Ldgb/q0;->m:Ljava/util/HashSet;

    return-void
.end method

.method public static a(Landroid/content/Context;[Ljava/lang/String;)V
    .locals 7

    .line 1
    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p0

    .line 2
    sput-object p0, Ldgb/q0;->k:Landroid/content/Context;

    .line 3
    sget-object v0, Ldgb/q0;->f:[Ljava/lang/String;

    array-length v1, v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v1, :cond_0

    aget-object v4, v0, v3

    .line 4
    sget-object v5, Ldgb/q0;->m:Ljava/util/HashSet;

    invoke-virtual {v5, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 5
    :cond_0
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    if-eqz p1, :cond_1

    .line 6
    array-length v1, p1

    const/4 v3, 0x0

    :goto_1
    if-ge v3, v1, :cond_1

    aget-object v4, p1, v3

    .line 7
    invoke-virtual {v0, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 8
    :cond_1
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    .line 9
    sget-object v1, Ldgb/q0;->c:[Ljava/lang/String;

    array-length v3, v1

    const/4 v4, 0x0

    :goto_2
    if-ge v4, v3, :cond_3

    aget-object v5, v1, v4

    .line 10
    invoke-virtual {v0, v5}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_2

    .line 11
    invoke-virtual {p1, v5}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    :cond_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 12
    :cond_3
    sget-object v1, Ldgb/q0;->g:Ldgb/q0$c;

    invoke-virtual {p0, v1, p1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 13
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    .line 14
    sget-object v1, Ldgb/q0;->d:[Ljava/lang/String;

    array-length v3, v1

    const/4 v4, 0x0

    :goto_3
    if-ge v4, v3, :cond_5

    aget-object v5, v1, v4

    .line 15
    invoke-virtual {v0, v5}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_4

    .line 16
    invoke-virtual {p1, v5}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    :cond_4
    add-int/lit8 v4, v4, 0x1

    goto :goto_3

    :cond_5
    const-string v1, "package"

    .line 17
    invoke-virtual {p1, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 18
    sget-object v1, Ldgb/q0;->h:Ldgb/q0$c;

    invoke-virtual {p0, v1, p1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 19
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    .line 20
    sget-object v1, Ldgb/q0;->e:[Ljava/lang/String;

    array-length v3, v1

    :goto_4
    if-ge v2, v3, :cond_7

    aget-object v4, v1, v2

    .line 21
    invoke-virtual {v0, v4}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_6

    .line 22
    invoke-virtual {p1, v4}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    :cond_6
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    :cond_7
    const-string v0, "file"

    .line 23
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 24
    sget-object v0, Ldgb/q0;->i:Ldgb/q0$c;

    invoke-virtual {p0, v0, p1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 25
    sget-object p0, Ldgb/q0;->k:Landroid/content/Context;

    invoke-static {p0}, Ldgb/t0;->a(Landroid/content/Context;)V

    return-void
.end method

.method public static a(Landroid/content/Intent;)V
    .locals 7

    .line 61
    invoke-virtual {p0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    .line 62
    sget-boolean v1, Ldgb/q0;->a:Z

    if-eqz v1, :cond_0

    .line 63
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "action="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ", "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ldgb/s0;->a(Ljava/lang/String;)V

    .line 64
    :cond_0
    sget-object v1, Ldgb/q0;->m:Ljava/util/HashSet;

    invoke-virtual {v1, v0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v1

    .line 65
    sget-object v2, Ldgb/q0;->b:Ljava/util/WeakHashMap;

    monitor-enter v2

    .line 66
    :try_start_0
    sget-object v3, Ldgb/q0;->l:Ljava/util/HashMap;

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/WeakHashMap;

    if-eqz v3, :cond_3

    .line 67
    invoke-virtual {v3}, Ljava/util/WeakHashMap;->keySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_3

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ldgb/q0$d;

    .line 68
    sget-boolean v5, Ldgb/q0;->a:Z

    if-eqz v5, :cond_1

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "dispatch "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, " to: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ldgb/s0;->a(Ljava/lang/String;)V

    :cond_1
    if-eqz v1, :cond_2

    .line 69
    invoke-interface {v4, p0}, Ldgb/q0$d;->a(Landroid/content/Intent;)V

    goto :goto_0

    .line 70
    :cond_2
    new-instance v5, Ldgb/q0$a;

    invoke-direct {v5, v4, p0}, Ldgb/q0$a;-><init>(Ldgb/q0$d;Landroid/content/Intent;)V

    invoke-static {v5}, Ldgb/u0;->c(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 71
    :cond_3
    monitor-exit v2

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p0

    :goto_2
    goto :goto_1
.end method

.method public static a(Ldgb/q0$d;Ljava/lang/String;)Z
    .locals 1

    const/4 v0, 0x0

    .line 28
    invoke-static {p0, p1, v0}, Ldgb/q0;->a(Ldgb/q0$d;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method public static a(Ldgb/q0$d;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const/4 v0, 0x0

    .line 29
    invoke-static {p0, p1, p2, v0}, Ldgb/q0;->a(Ldgb/q0$d;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method public static a(Ldgb/q0$d;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 4

    const/4 v0, 0x0

    if-eqz p0, :cond_d

    if-eqz p1, :cond_d

    .line 30
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_3

    :cond_0
    if-nez p2, :cond_4

    if-eqz p3, :cond_1

    goto :goto_1

    .line 31
    :cond_1
    sget-object v0, Ldgb/q0;->c:[Ljava/lang/String;

    invoke-static {p1, v0}, Ldgb/q0;->a(Ljava/lang/String;[Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    goto :goto_0

    .line 32
    :cond_2
    sget-object v0, Ldgb/q0;->d:[Ljava/lang/String;

    invoke-static {p1, v0}, Ldgb/q0;->a(Ljava/lang/String;[Ljava/lang/String;)Z

    move-result v0

    :goto_0
    if-eqz v0, :cond_3

    goto :goto_1

    .line 33
    :cond_3
    sget-object v0, Ldgb/q0;->e:[Ljava/lang/String;

    invoke-static {p1, v0}, Ldgb/q0;->a(Ljava/lang/String;[Ljava/lang/String;)Z

    move-result v0

    :cond_4
    :goto_1
    if-nez v0, :cond_7

    .line 34
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "]_["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "]_["

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 35
    sget-object v1, Ldgb/q0;->j:Ljava/util/HashMap;

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_7

    .line 36
    new-instance v1, Ldgb/q0$c;

    invoke-direct {v1}, Ldgb/q0$c;-><init>()V

    .line 37
    new-instance v2, Landroid/content/IntentFilter;

    invoke-direct {v2}, Landroid/content/IntentFilter;-><init>()V

    .line 38
    invoke-virtual {v2, p1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    if-eqz p2, :cond_5

    .line 39
    invoke-virtual {v2, p2}, Landroid/content/IntentFilter;->addCategory(Ljava/lang/String;)V

    :cond_5
    if-nez p3, :cond_6

    .line 40
    sget-object p2, Ldgb/q0;->k:Landroid/content/Context;

    invoke-virtual {p2, v1, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    goto :goto_2

    .line 41
    :cond_6
    sget-object p2, Ldgb/q0;->k:Landroid/content/Context;

    const/4 v3, 0x0

    invoke-virtual {p2, v1, v2, p3, v3}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;)Landroid/content/Intent;

    .line 42
    :goto_2
    sget-object p2, Ldgb/q0;->j:Ljava/util/HashMap;

    invoke-virtual {p2, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 43
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "register dynamic receiver["

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p3, Ldgb/q0;->j:Ljava/util/HashMap;

    invoke-virtual {p3}, Ljava/util/HashMap;->size()I

    move-result p3

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p3, "]: "

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Ldgb/s0;->a(Ljava/lang/String;)V

    .line 44
    :cond_7
    sget-object p2, Ldgb/q0;->b:Ljava/util/WeakHashMap;

    monitor-enter p2

    .line 45
    :try_start_0
    sget-object p3, Ldgb/q0;->b:Ljava/util/WeakHashMap;

    invoke-virtual {p3, p0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Ldgb/q0$b;

    if-nez p3, :cond_8

    .line 46
    new-instance p3, Ldgb/q0$b;

    invoke-direct {p3}, Ldgb/q0$b;-><init>()V

    .line 47
    sget-object v0, Ldgb/q0;->b:Ljava/util/WeakHashMap;

    invoke-virtual {v0, p0, p3}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 48
    :cond_8
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p3, Ldgb/q0$b;->a:Ljava/lang/ref/WeakReference;

    .line 49
    iget-object v0, p3, Ldgb/q0$b;->b:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_9

    .line 50
    iget-object v0, p3, Ldgb/q0$b;->b:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 51
    :cond_9
    sget-object v0, Ldgb/q0;->l:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/WeakHashMap;

    if-nez v0, :cond_a

    .line 52
    new-instance v0, Ljava/util/WeakHashMap;

    invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V

    .line 53
    sget-object v1, Ldgb/q0;->l:Ljava/util/HashMap;

    invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 54
    sget-boolean v1, Ldgb/q0;->a:Z

    if-eqz v1, :cond_a

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "register target: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " , "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ldgb/s0;->a(Ljava/lang/String;)V

    .line 55
    :cond_a
    invoke-virtual {v0, p0}, Ljava/util/WeakHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_b

    .line 56
    invoke-virtual {v0, p0, p3}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 57
    :cond_b
    sget-boolean p1, Ldgb/q0;->a:Z

    if-eqz p1, :cond_c

    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "register listener: "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p0, " to target data: "

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Ldgb/s0;->a(Ljava/lang/String;)V

    :cond_c
    const/4 p0, 0x1

    .line 58
    monitor-exit p2

    return p0

    :catchall_0
    move-exception p0

    .line 59
    monitor-exit p2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    :cond_d
    :goto_3
    const-string p0, "bad parameter found"

    .line 60
    invoke-static {p0}, Ldgb/s0;->c(Ljava/lang/String;)V

    return v0
.end method

.method private static a(Ljava/lang/String;[Ljava/lang/String;)Z
    .locals 4

    const/4 v0, 0x0

    if-eqz p0, :cond_2

    if-nez p1, :cond_0

    goto :goto_1

    .line 26
    :cond_0
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_2

    aget-object v3, p1, v2

    .line 27
    invoke-virtual {p0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    const/4 p0, 0x1

    return p0

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_2
    :goto_1
    return v0
.end method
